// const arr = [100, 200, 300]
// const first = arr[0]
// const third = arr[2]
// console.log(first, third)


// const arr = [100, 200, 300]
// const [first, , third] = arr
// console.log(first, third)


// const arr = [100, 200, 300]
// const [first,...rest] = arr
// console.log(first, rest)

// const arr = [100, 200, 300]
// const [first, second, third, other] = arr
// console.log(third, other)

// const arr = [100, 200, 300]
// const [first, second, third, other = 0] = arr
// console.log(third, other)

// let url = '/user/12345'
// const temp = url.split('/')
// const userId = temp[2]
// console.log(userId)

// let url = '/user/12345'
// const [,,userId] = url.split('/')
// console.log(userId)
